#ifndef CONNECTACCEPT_H_
#define CONNECTACCEPT_H_

#include <string>
#include "ariba/ariba.h"

using namespace ariba;
using std::string;

using_serialization;

class ConnectAccept : public Message {
	VSERIALIZEABLE;

public:
	ConnectAccept();
	ConnectAccept(string player, uint32_t positionX, uint32_t positionY, uint32_t timestamp);
	virtual ~ConnectAccept();
    string getPlayer() const;
    uint32_t getPositionX() const;
    uint32_t getPositionY() const;
    uint32_t getTimestamp() const;

private:
	string player;
	uint32_t timestamp;
	uint32_t positionX;
	uint32_t positionY;
};

sznBeginDefault( ConnectAccept, X ) {
	X && T(player) && timestamp && positionX && positionY;
} sznEnd();

#endif /* CONNECTACCEPT_H_ */
